package com.lys.eduservice.controller;

import com.lys.commonutils.R;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

@RestController
@Slf4j
@RequestMapping("/eduservice")
public class LoginTeacherContaoller {

    @ApiOperation(value = "登录接口")
    @PostMapping("/user/login")

    public R login(){
        return R.ok().data("token","token");
    }
    @GetMapping("/user/info")
    @ApiOperation(value = "获取登录信息")

    public R info(){
        return R.ok().data("roles","[admin]").data("name","admin").data("avatar","https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif");
    }
}
